﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace Movement_Trajectory_Analysis
{
    public partial class convertForm : Form
    {
        MainForm mainForm;

        public convertForm(MainForm mainForm)
        {
            this.mainForm = mainForm;
            InitializeComponent();
        }


        private void button1_Click(object sender, EventArgs e)
        {
            MTAF.SaveTXT();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MTAF.OpenMTA();
            richTextBox1.Text += System.IO.File.ReadAllText("descrypted.mta");
            File.Delete("descrypted.mta");
        }
    }
}
